/**
* 版权声明：厦门睿商网络科技有限公司 版权所有 违者必究
* 日    期：2020-04-27
*/
package com.rzico.account.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * <pre>
 *   钱包账单数据库对象
 * </pre>
 * @author Rzico Boot
 * @version 1.0
 */
@Data
@JsonIgnoreProperties(value = {"handler"})
@JsonInclude(JsonInclude.Include.NON_NULL)
@Table(name = "wx_deposit")
public class Deposit{
    @Id
    @ApiModelProperty(value = "" )
    protected Long id;

    @ApiModelProperty(value = "创建日期" )
    protected Date createDate;

    @ApiModelProperty(value = "修改日期" )
    protected Date modifyDate;

    @ApiModelProperty(value = "当前余额" )
    protected java.math.BigDecimal balance;

    @ApiModelProperty(value = "收入金额" )
    protected java.math.BigDecimal credit;

    @ApiModelProperty(value = "支出金额" )
    protected java.math.BigDecimal debit;

    @ApiModelProperty(value = "摘要" )
    protected String memo;

    @ApiModelProperty(value = "操作员" )
    protected String operator;

    @ApiModelProperty(value = "类型 {0:充值,1:付款,2:退款,3.提现,4.收款,5.佣金,6.货款}" )
    protected Integer type;

    @ApiModelProperty(value = "会员id" )
    protected Long memberId;

    @JsonIgnore
    @ApiModelProperty(value = "是否删除" ,hidden = true )
    protected Boolean deleted;

    @ApiModelProperty(value = "付款单 id" )
    protected Long paymentId;

    @ApiModelProperty(value = "退款单 id" )
    protected Long refundsId;

    @ApiModelProperty(value = "订单类型 {0:订单,1.咨询,2.测试,3.报名,4.课程,5.问答}")
    protected Integer orderType;

    @ApiModelProperty(value = "订单ID")
    protected Long orderId;

    @ApiModelProperty(value = "所属企业" )
    protected Long enterpriseId;


}
